home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-11 | 4.2 KB | 170 lines | [TEXT/MPS ] |
- ;
- ; File: Connections.a
- ;
- ; Copyright: © 1984-1994 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Version: Universal Interfaces 2.0a3 ETO #16, MPW prerelease. Friday, November 11, 1994.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
-
- IF &TYPE('__CONNECTIONS__') = 'UNDEFINED' THEN
- __CONNECTIONS__ SET 1
-
-
- IF &TYPE('__WINDOWS__') = 'UNDEFINED' THEN
- include 'Windows.a'
- ENDIF
- ; include 'Memory.a' ;
- ; include 'Types.a' ;
- ; include 'ConditionalMacros.a' ;
- ; include 'MixedMode.a' ;
- ; include 'Quickdraw.a' ;
- ; include 'QuickdrawText.a' ;
- ; include 'Events.a' ;
- ; include 'OSUtils.a' ;
- ; include 'Controls.a' ;
- ; include 'Menus.a' ;
-
- IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
- include 'Dialogs.a'
- ENDIF
- ; include 'Errors.a' ;
- ; include 'TextEdit.a' ;
-
- IF &TYPE('__CTBUTILITIES__') = 'UNDEFINED' THEN
- include 'CTBUtilities.a'
- ENDIF
- ; include 'StandardFile.a' ;
- ; include 'Files.a' ;
- ; include 'AppleTalk.a' ;
-
- ; current Connection Manager version
- curCMVersion EQU 2
- ; current Connection Manager Environment Record version
- curConnEnvRecVers EQU 0
- ; CMErr
- cmGenericError EQU -1
- cmNoErr EQU 0
- cmRejected EQU 1
- cmFailed EQU 2
- cmTimeOut EQU 3
- cmNotOpen EQU 4
- cmNotClosed EQU 5
- cmNoRequestPending EQU 6
- cmNotSupported EQU 7
- cmNoTools EQU 8
- cmUserCancel EQU 9
- cmUnknownError EQU 11
-
- cmData EQU 1 << 0
- cmCntl EQU 1 << 1
- cmAttn EQU 1 << 2
- cmDataNoTimeout EQU 1 << 4
- cmCntlNoTimeout EQU 1 << 5
- cmAttnNoTimeout EQU 1 << 6
- cmDataClean EQU 1 << 8
- cmCntlClean EQU 1 << 9
- cmAttnClean EQU 1 << 10
- ; Only for CMRecFlags (not CMChannel) in the rest of this enum
- cmNoMenus EQU 1 << 16
- cmQuiet EQU 1 << 17
- cmConfigChanged EQU 1 << 18
-
- ; CMRecFlags and CMChannel
- ; Low word of CMRecFlags is same as CMChannel
- cmStatusOpening EQU 1 << 0
- cmStatusOpen EQU 1 << 1
- cmStatusClosing EQU 1 << 2
- cmStatusDataAvail EQU 1 << 3
- cmStatusCntlAvail EQU 1 << 4
- cmStatusAttnAvail EQU 1 << 5
- cmStatusDRPend EQU 1 << 6 ; data read pending
- cmStatusDWPend EQU 1 << 7 ; data write pending
- cmStatusCRPend EQU 1 << 8 ; cntl read pending
- cmStatusCWPend EQU 1 << 9 ; cntl write pending
- cmStatusARPend EQU 1 << 10 ; attn read pending
- cmStatusAWPend EQU 1 << 11 ; attn write pending
- cmStatusBreakPend EQU 1 << 12
- cmStatusListenPend EQU 1 << 13
- cmStatusIncomingCallPresent EQU 1 << 14
- cmStatusReserved0 EQU 1 << 15
-
- cmDataIn EQU 0
- cmDataOut EQU 1
- cmCntlIn EQU 2
- cmCntlOut EQU 3
- cmAttnIn EQU 4
- cmAttnOut EQU 5
- cmRsrvIn EQU 6
- cmRsrvOut EQU 7
-
- cmSearchSevenBit EQU 1 << 0
-
- cmFlagsEOM EQU 1 << 0
-
- ConnEnvironRec RECORD 0
- version ds.w 1
- baudRate ds.l 1
- dataBits ds.w 1
- channels ds.w 1
- swFlowControl ds.b 1
- hwFlowControl ds.b 1
- flags ds.w 1
- sizeof EQU 14
- ENDR
-
- ConnRecord RECORD 0
- procID ds.w 1
- flags ds.l 1
- errCode ds.w 1
- refCon ds.l 1
- userData ds.l 1
- defProc ds.l 1
- config ds.l 1
- oldConfig ds.l 1
- asyncEOM ds.l 1
- reserved1 ds.l 1
- reserved2 ds.l 1
- cmPrivate ds.l 1
- bufferArray ds.l 8
- bufSizes ds.l 8
- mluField ds.l 1
- asyncCount ds.l 8
- sizeof EQU 144
- ENDR
-
-
- ; CMIOPB constants and structure
- cmIOPBQType EQU 10
- cmIOPBversion EQU 0
-
- CMIOPB RECORD 0
- qLink ds.l 1
- qType ds.w 1 ; cmIOPBQType
- hConn ds.l 1
- theBuffer ds.l 1
- count ds.l 1
- flags ds.w 1
- userCompletion ds.l 1
- timeout ds.l 1
- errCode ds.w 1
- channel ds.w 1
- asyncEOM ds.l 1
- reserved1 ds.l 1
- reserved2 ds.w 1
- version ds.w 1 ; cmIOPBversion
- refCon ds.l 1 ; for application
- toolData1 ds.l 1 ; for tool
- toolData2 ds.l 1 ; for tool
- sizeof EQU 56
- ENDR
-
- ENDIF ; __CONNECTIONS__
-